package router

import (
	"ruoyi-go-echo-ddd/internal/infrastructure/http/handler"

	"github.com/labstack/echo/v4"
)

// NewSysPostRouter 岗位信息路由初始化
func NewSysPostRouter(group *echo.Group, sysPost *handler.SysPostHandler) {
	sysPostRouter := group.Group("/system/post")
	sysPostRouter.POST("", sysPost.SaveHandler)
	sysPostRouter.PUT("", sysPost.UpdateHandler)
	sysPostRouter.POST("/batchSave", sysPost.BatchSaveHandler)
	sysPostRouter.GET("/list", sysPost.SelectPageHandler)
	sysPostRouter.POST("/list", sysPost.SelectPageHandler)
	sysPostRouter.GET("/:id", sysPost.SelectOneHandler)
	sysPostRouter.POST("/batchDelete", sysPost.BatchDeleteHandler)
	sysPostRouter.GET("/selectAll", sysPost.SelectAllHandler)
	sysPostRouter.GET("/export", sysPost.ExportExcelBufferHandler)
}
